/*
 * @Author: fengshan0525 2735332396@qq.com
 * @Date: 2023-03-17 20:43:12
 * @LastEditors: asanupup 15465106+asanupup@user.noreply.gitee.com
 * @LastEditTime: 2025-08-06 11:13:40
 * @FilePath: \b-vue3-ts-ele-template\src\router\baseRoutes.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { RouteRecordRaw } from 'vue-router'
import Layout from '../layout/index.vue'

export const baseRoutes: Array<RouteRecordRaw> = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/login.vue')
  },
  {
    path: '/404',
    name: 'NotFound',
    component: () => import('../views/404.vue')
  },
  {
    path: '/preview',
    name: 'Preview',
    component: () => import('../views/preview.vue')
  },
  {
    // path: '/',
    // name: 'Index',
    // component: () => import('@/views/Home/Index.vue'),
    // meta: { title: '首页', icon: 'House' }
    path: '',
    component: Layout,
    redirect: 'index',
    meta: { title: '首页', icon: 'House' },
    children: [
      {
        path: 'index',
        name: 'Index',
        component: () => import('@/views/Home/Index.vue'),
        meta: { title: '首页', icon: 'House', affix: true, status: "1" }
      }
    ]
  }
]

export const routes: Array<RouteRecordRaw> = baseRoutes
